QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mysqlconnet.cpp \
    tcpserver.cpp \
    wowgetway.cpp

HEADERS += \
    mysqlconnet.h \
    tcpserver.h \
    wowgetway.h

FORMS += \
    wowgetway.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../usr/local/mysql/lib/release/ -lmysqlclient
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../usr/local/mysql/lib/debug/ -lmysqlclient
else:unix: LIBS += -L$$PWD/../../../usr/local/mysql/lib/ -lmysqlclient

INCLUDEPATH += $$PWD/../../../usr/local/mysql/include
DEPENDPATH += $$PWD/../../../usr/local/mysql/include

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../usr/local/mysql/lib/release/libmysqlclient.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../usr/local/mysql/lib/debug/libmysqlclient.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../usr/local/mysql/lib/release/mysqlclient.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../usr/local/mysql/lib/debug/mysqlclient.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../usr/local/mysql/lib/libmysqlclient.a
